import os
import time

path_dir = str(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)))
file = path_dir + r'\data\dz_service_case_data.json'

print(path_dir)
print(file)
picture_time = time.strftime("%Y-%m-%d-%H_%M_%S", time.localtime(time.time()))
# 生成年月日
directory_time = time.strftime("%Y-%m-%d", time.localtime(time.time()))
url1 = os.getcwd() + '\\' + "python_bug" + '\\' + directory_time + '\\' + picture_time+'.png'
print(url1)
url2 = '.\\' + "python_bug" + '\\' + directory_time + '\\' + picture_time+'.png'
print(url2)
url3 = str(os.path.abspath(os.path.join(os.path.dirname(__file__),
                                       os.pardir))) + '\\' + "python_bug" + '\\' + directory_time + '\\' + picture_time + '.png'
print(url3)